package com.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dao.ProvinceDAO;
import com.pojo.Area;
import com.pojo.Province;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceService extends ServiceImpl<ProvinceDAO, Province> {

    @Autowired
    private ProvinceDAO provinceDAO;

    /**
     * 查询所有省份
     * @return
     */
    public List<Area> findProvince(){
        List list = provinceDAO.selectList(null);
        return list;
    }
}
